home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Univers Mac Interactif 43
/
Univers Mac Interactif - Issue 43.iso
/
univers mac N°43
/
Votre Mac
/
logiciels
/
Grafikkonverter 2.0.1 (D)
/
Plug-ins
/
ImportExport.p
next >
Wrap
Text File
|
1994-06-06
|
2KB
|
86 lines
unit ImportExport;
interface
{ File type of an extension: PLUG }
{ Creator of an extension: GKON }
{}
{ Definition of an import extension: }
{ STR# number 1024 index 1 contains the name }
{ STR# number 1024 index 2 contains the file type of the graphic files }
{ PLUG number 1024 contains the 68K code resource for the import extension }
{}
{ Definition of an export extension: }
{ STR# number 2048 index 1 contains the name }
{ STR# number 2048 index 2 contains the file type of the graphic files }
{ PLUG number 2048 contains the 68K code resource for the export extension }
{}
{ One extension can contain the import and export resources }
type
T_ColorTableArr = array[0..255] of RGBColor;
T_ColorTablePtr = ^T_ColorTableArr;
T_ImportRec = record
version: Longint; { 0 }
callKind: Longint; { 0 - all available, 1 - format was especially selected }
progressProcPtr: ptr; { nil, if not function available }
progressType: Longint; { 0-68K, 1-PPC }
createVectorPict: Longint; { 0-no, 1-yes }
vectorPictHdl: PicHandle;
srcDataHdl: Handle;
srcDataSize: Longint;
srcFile: FSSpec;
destDataHdl: Handle;
destBitsPerPixel: Longint;
destBytesPerLine: Longint;
destWidth: Longint;
destHeight: Longint;
destDataSize: Longint; { in bytes }
destColorTablePtr: T_ColorTablePtr; { preallocated for 256 colors, fill only the fields }
destKindStr: str255;
destFileType: ResType;
success: Longint; { 0 - no, 1 - yes }
end;
T_ImportPtr = ^T_ImportRec;
T_ExportRec = record
version: Longint; { 0 }
progressProcPtr: ptr; { nil, if not function available }
progressType: Longint; { 0-68K, 1-PPC }
srcDataPtr: ptr;
srcBitsPerPixel: Longint;
srcBytesPerLine: Longint;
srcWidth: Longint;
srcHeight: Longint;
srcColorTablePtr: T_ColorTablePtr;
srcDataSize: Longint; { in bytes }
destFSSpecRec: FSSpec;
success: Longint; { 0 - no, 1 - yes }
end;
T_ExportPtr = ^T_ExportRec;
const
C_SetTitle = 0;
C_InitProgressBar = 1;
C_SetProgressValue = 2;
C_ClearProgressBar = 3;
{ prototype for progress function: }
{ procedure Progress(command:Longint; title:str255; percent:Longint);}
{ percent in the range 0..100 }
implementation
end.